﻿using DbSetupHelper.Plugin.ScriptPackage;

namespace SampleProject.DatabaseV1
{
    class ScriptPackageMetadata : IScriptPackageMetadata
    {
        #region IScriptPackageMetadata Members

        /// <summary>
        /// Package name to be displayed to the user.
        /// </summary>
        /// <value>The name of the package.</value>
        public string PackageFriendlyName
        {
            get { return "Example Database Scripts v1"; }
        }

        /// <summary>
        /// Gets a value indicating whether [initial database creation].
        /// </summary>
        /// <value>
        /// 	<c>true</c> if [initial database creation]; otherwise, <c>false</c>.
        /// </value>
        /// <remarks>
        /// The DBSetupHelper checks this when running in an unattended mode to see which script
        /// package should be run.
        /// </remarks>
        public bool InitialDatabaseCreation
        {
            get { return true; }
        }

        /// <summary>
        /// Gets the script package version.
        /// </summary>
        /// <value>The script package version.</value>
        /// <remarks>
        /// The DBSetupHelper checks this when running unattended and uses the greatest number.
        /// </remarks>
        public int ScriptPackageVersion
        {
            get { return 1; }
        }

        #endregion
    }
}
